﻿<%@ Page Language="C#" MasterPageFile="~/Front.Master" AutoEventWireup="true" CodeBehind="ViewUserInfo.aspx.cs" Inherits="HRProject.User.ViewUserInfo" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="IncludePlaceHolder" runat="server">
    <script type="text/javascript" language="javascript" src="/js/userinfo.js"></script>
</asp:Content>
<asp:Content ID="TitleIconPlaceHolder" ContentPlaceHolderID="TitleIconPlaceHolder" runat="server">
    <img alt="" src="/image/layout/icon/UserIcon.png" />
</asp:Content>
<asp:Content ID="TitleNamePlaceHolder" ContentPlaceHolderID="TitleNamePlaceHolder" runat="server">
    Agent information
</asp:Content>
<asp:Content ID="MainPanelPlaceHolder" ContentPlaceHolderID="MainPanelPlaceHolder" runat="server">
    <table>
        <tr>
            <td><asp:Label ID="lblUserName" runat="server" Text="Username"></asp:Label></td>
            <td>
                <asp:Label ID="lblUserNameInfo" runat="server"></asp:Label>
                
            </td>
        </tr>
        <tr>
            <td><asp:Label ID="lblName" runat="server" Text="Full name"></asp:Label></td>
            <td><asp:Label ID="tbxFullName" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td><asp:Label ID="lblIdentifierSerial" runat="server" Text="Identifier serial"></asp:Label></td>
            <td><asp:Label ID="tbxIdentifierSerial" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td><asp:Label ID="lblBirthDate" runat="server" Text="Birthdate"></asp:Label></td>
            <td><asp:Label ID="tbxBirthDate" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td><asp:Label ID="lblBirthPlace" runat="server" Text="Birthplace"></asp:Label></td>
            <td><asp:Label ID="tbxBirthPlace" runat="server"></asp:Label></td>
        </tr>
        
        <tr>
            <td><asp:Label ID="lblGender" runat="server" Text="Gender"></asp:Label></td>
            <td>
                <asp:Label ID="tbxGender" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td><asp:Label ID="lblPhone" runat="server" Text="Phone"></asp:Label></td>
            <td><asp:Label ID="tbxPhone" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td><asp:Label ID="lblContact" runat="server" Text="Contact"></asp:Label></td>
            <td><asp:Label ID="tbxContact" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td><asp:Label ID="lblEmail" runat="server" Text="Email"></asp:Label></td>
            <td><asp:Label ID="tbxEmail" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td><asp:Label ID="lblPeople" runat="server" Text="People"></asp:Label></td>
            <td><asp:Label ID="tbxPeople" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td><asp:Label ID="lblMaritalStatus" runat="server" Text="Marital status"></asp:Label></td>
            <td><asp:Label ID="tbxMaritalStatus" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td><asp:Label ID="lblAddress" runat="server" Text="Address"></asp:Label></td>
            <td><asp:Label ID="tbxAddress" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td><asp:Label ID="lblAddress2" runat="server" Text="Address 2"></asp:Label></td>
            <td><asp:Label ID="tbxAddress2" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td valign="top"><asp:Label ID="lblAssets" runat="server" Text="Assets"></asp:Label></td>
            <td>
                <asp:TextBox ID="txaAssets" runat="server" TextMode="MultiLine" ReadOnly="true" BorderWidth="0" BackColor="Transparent"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td valign="top"><asp:Label ID="lblExtraDescription" runat="server" Text="Extra information"></asp:Label></td>
            <td>
                <div runat="server" id="divExtraDescription" style="white-space:pre">
                </div>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <asp:Label ID="lblRecords" runat="server" Text="Records"></asp:Label>
            </td>
            <td>
                <table id="tblRecords" border="1" cellspacing="0" cellpadding="5">
                    <tr style="display:table-row">
                        <th></th>
                        <th>Value</th>
                        <th>Start time</th>
                        <th>End time</th>
                        <th>Rating</th>
                    </tr>
                    <%
                    for (int i = 0; i < Records.Count; i++)
                    {
                        %>
                        <tr>
                            <td><%= Records[i].Type.Name %></td>
                            <td><%= Records[i].Description %></td>
                            <td><%= Records[i].StartDate.ToString("dd/MM/yyyy") %></td>
                            <td><%= Records[i].EndDate.ToString("dd/MM/yyyy")%></td>
                            <td><%= Records[i].Rating %></td>
                        </tr>
                        <%
                    }
                    %>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
